<template>
  <div class="reports_s">
    <div v-for="(item, index) in reportItems" :key="index" class="reports">
      <p>{{ item.title }}</p>
      <div class="rit">
        <p>
          <span>{{ item.value }}</span>
          {{ item.unit }}
        </p>
      </div>
    </div>
  </div>
  <!-- 规则说明组件 -->
  <RuleBox :content="activityData?.desc" />
</template>

<script setup lang="ts">
const props = defineProps(['activityData'])

// 报告项目数据
const reportItems = [
  {
    title: $t('ranking.tc_footer_subordinates'),
    value: props.activityData.invited_count || 0,
    unit: $t('ranking.tc_footer_people'),
  },
  {
    title: $t('ranking.tc_footer_deposit'),
    value: ">= " + (props.activityData.min_recharge || 0),
    unit: "",
  },
  {
    title: $t('ranking.tc_footer_bet_times'),
    value: ">= " + (props.activityData.min_bet || 0),
    unit: "",
  },
];
</script>

<style scoped lang="scss">
.reports_s {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: 0.32rem;
  background: #3f2e4b;
  padding: 0.2rem;
}

.reports {
  width: 100%;
  height: 1.24rem;
  min-height: 1.24rem;
  flex-shrink: 0;
  background: #2c1d31;
  border-radius: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.4rem;
  box-sizing: border-box;

  p {
    font-size: 0.38rem;
    color: var(--theme-neutral1);
    margin: 0;
  }

  .rit {
    display: flex;
    align-items: center;
    gap: 0.21rem;

    p {
      font-size: 0.44rem;
      color: #79618A;
      margin: 0;
    }

    span {
      font-size: 0.44rem;
      color: #FFD700;
      margin-right: 0.16rem;
    }
  }
}

:deep(.rule-box) {
  margin-top: .2rem;
}
</style>
